﻿namespace FastCode.Helper
{
    public static class StringExtension
    {


        public static bool IsHasValue(this string value)
        {
            return !string.IsNullOrEmpty(value);
        }
        /// <summary>
        /// 字符串首字母小写
        /// </summary>
        /// <param name="str"></param>
        /// <returns></returns>
        /// <exception cref="ArgumentException"></exception>
        public static string FirstCharToLower(this string str)
        {
            if (string.IsNullOrEmpty(str))
                throw new ArgumentException("ARGH!");
            return str.First().ToString().ToLower() + str.Substring(1);
        }
    }
}
